PWD = $(shell pwd)
KERNEL_DIR ?=$(PWD)/../../linux


CC = aarch64-buildroot-linux-gnu-gcc
LD = aarch64-buildroot-linux-gnu-ld

dma-buf-y := exporter-dummy.o

obj-m += dma-buf.o

PHONY += kernel_modules
kernel_modules:
	$(MAKE) ARCH=arm64 CROSS_COMPILER=$(CC) -C $(KERNEL_DIR) M=$(PWD) modules


PHONY += clean
clean:
	$(MAKE) ARCH=arm64 CROSS_COMPILER=$(CC) -C $(KERNEL_DIR) M=$(PWD) clean